package com.smartmedi.ai.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 住院电子病历记录（病历索引和大文本编码）
 * @TableName JH_IN_MR
 */
@TableName(value ="JH_IN_MR")
@Data
public class JhInMr implements Serializable {
    /**
     * IMR主键
     */
    @TableId(value = "ROWKEY", type = IdType.AUTO)
    private Long rowkey;

    /**
     * 住院病历记录编号
     */
    @TableField("IN_MR_SN")
    private String inMrSn;

    /**
     * 来源业务系统主键
     */
    @TableField("HIS_KEY")
    private String hisKey;

    /**
     * 住院就诊编号
     */
    @TableField("IN_HOSP_SN")
    private String inHospSn;

    /**
     * 病历编号
     */
    @TableField("MR_CODE")
    private String mrCode;

    /**
     * 病历文件名
     */
    @TableField("MR_NAME")
    private String mrName;

    /**
     * 文书标题
     */
    @TableField("MR_TOPIC")
    private String mrTopic;

    /**
     * 创建者
     */
    @TableField("CREATOR_NAME")
    private String creatorName;

    /**
     * 创建时间
     */
    @TableField("CREATE_TIME")
    private String createTime;

    /**
     * 最后修改人
     */
    @TableField("LAST_MODIFY_NAME")
    private String lastModifyName;

    /**
     * 最后修改时间
     */
    @TableField("LAST_MODIFY_TIME")
    private String lastModifyTime;

    /**
     * 文书归类
     */
    @TableField("MR_TYPE")
    private String mrType;

    /**
     * 模板大类
     */
    @TableField("MR_CLASS")
    private String mrClass;

    /**
     * 模板小类
     */
    @TableField("MR_SUB_CLASS")
    private String mrSubClass;

    /**
     * 病历状态
     */
    @TableField("FILE_FLAG")
    private String fileFlag;

    /**
     * 病历标题时间
     */
    @TableField("CAPTION_DATE_TIME")
    private String captionDateTime;

    /**
     * 实习医生
     */
    @TableField("HOUSEMAN")
    private String houseman;

    /**
     * 值班医生标志
     */
    @TableField("ON_DUTY_FLAG")
    private String onDutyFlag;

    /**
     * 上级审签医师
     */
    @TableField("PARENT_NAME")
    private String parentName;

    /**
     * 上级审签时间
     */
    @TableField("PARENT_TIME")
    private String parentTime;

    /**
     * 主任审签医师
     */
    @TableField("SUPPER_NAME")
    private String supperName;

    /**
     * 主任审签时间
     */
    @TableField("SUPPER_TIME")
    private String supperTime;

    /**
     * 标题中的医生姓名
     */
    @TableField("TOPIC_DOCTOR_NAME")
    private String topicDoctorName;

    /**
     * 复印状态
     */
    @TableField("PHOTOCOPY")
    private String photocopy;

    /**
     * 病历属性
     */
    @TableField("FILE_VISIT_TYPE")
    private String fileVisitType;

    /**
     * 备注
     */
    @TableField("FILE_COMMENT")
    private String fileComment;

    /**
     * 首次签名时间
     */
    @TableField("FIRST_SIGN_TIME")
    private String firstSignTime;

    /**
     * 删除标记
     */
    @TableField("DELETE_FLAG")
    private String deleteFlag;

    /**
     * HTML内容号
     */
    @TableField("MR_CONTENT_HTML")  // 数据库列名含下划线，必须显式映射
    private String mrContentHtml;

    /**
     * TEXT内容号
     */
    @TableField("MR_CONTENT_TEXT")  // 数据库列名含下划线
    private String mrContentText;

    /**
     * CDA内容号
     */
    @TableField("MR_CONTENT_CDA")  // 数据库列名含下划线
    private String mrContentCda;

    /**
     * PDF内容号
     */
    @TableField("MR_CONTENT_PDF")  // 数据库列名含下划线
    private String mrContentPdf;

    /**
     * 病历内容格式
     */
    @TableField("MR_LINK_TYPE")
    private String mrLinkType;

    /**
     * 病历访问地址
     */
    @TableField("MR_LINK_URL")
    private String mrLinkUrl;

    /**
     * 病历访问参数
     */
    @TableField("MR_LINK_EXT")
    private String mrLinkExt;

    /**
     * 展示处理程序
     */
    @TableField("LINK_APP")
    private String linkApp;

    /**
     * 展示处理参数
     */
    @TableField("LINK_PARA")
    private String linkPara;

    /**
     * 内容关联号1（核心修改：解决mr_content1错误）
     */
    @TableField("MR_CONTENT_1")  // 数据库列名是MR_CONTENT_1，显式映射
    private String mrContent1;

    /**
     * 内容关联号2
     */
    @TableField("MR_CONTENT_2")  // 显式映射
    private String mrContent2;

    /**
     * 内容关联号3
     */
    @TableField("MR_CONTENT_3")  // 显式映射
    private String mrContent3;

    /**
     * 内容关联号4
     */
    @TableField("MR_CONTENT_4")  // 显式映射
    private String mrContent4;

    /**
     * 业务主键结构
     */
    @TableField("HIS_KEY_SRC")
    private String hisKeySrc;

    /**
     * 系统更新时间
     */
    @TableField("PDL_LAST_UPDATE")
    private String pdlLastUpdate;

    /**
     * 创建者编码
     */
    @TableField("SC_CREATOR")
    private String scCreator;

    /**
     * 创建者名称
     */
    @TableField("ST_CREATOR")
    private String stCreator;

    /**
     * 最后修改人编码
     */
    @TableField("SC_LAST_MODIFY")
    private String scLastModify;

    /**
     * 最后修改人名称
     */
    @TableField("ST_LAST_MODIFY")
    private String stLastModify;

    /**
     * 文书归类简码
     */
    @TableField("SD_MR_TYPE")
    private Integer sdMrType;

    /**
     * 文书归类描述
     */
    @TableField("ST_MR_TYPE")
    private String stMrType;

    /**
     * 病历状态简码
     */
    @TableField("SD_FILE_STA")
    private Integer sdFileSta;

    /**
     * 病历状态描述
     */
    @TableField("ST_FILE_STA")
    private String stFileSta;

    /**
     * 实习医生编码
     */
    @TableField("SC_HOUSEMAN")
    private String scHouseman;

    /**
     * 实习医生名称
     */
    @TableField("ST_HOUSEMAN")
    private String stHouseman;

    /**
     * 是否值班医生
     */
    @TableField("SD_ON_DUTY")
    private Integer sdOnDuty;

    /**
     * 上级医师编码
     */
    @TableField("SC_PARENT")
    private String scParent;

    /**
     * 上级医师名称
     */
    @TableField("ST_PARENT")
    private String stParent;

    /**
     * 主任医师编码
     */
    @TableField("SC_SUPPER")
    private String scSupper;

    /**
     * 主任医师名称
     */
    @TableField("ST_SUPPER")
    private String stSupper;

    /**
     * 复印状态
     */
    @TableField("SD_PHOTOCOPY")
    private Integer sdPhotocopy;

    /**
     * 病历属性
     */
    @TableField("SD_FILE_VISIT_TYPE")
    private Integer sdFileVisitType;

    /**
     * 是否删除
     */
    @TableField("SD_DELETE")
    private Integer sdDelete;

    /**
     * 病历内容格式
     */
    @TableField("SD_MR_LINK_TYPE")
    private Integer sdMrLinkType;

    /**
     * 展示处理程序
     */
    @TableField("SD_LINK_APP")
    private Integer sdLinkApp;

    /**
     * 文书归类编码
     */
    @TableField("SC_MR_TYPE")
    private String scMrType;

    /**
     * 病历状态编码
     */
    @TableField("SC_FILE_STA")
    private String scFileSta;

    /**
     * 复印状态编码
     */
    @TableField("SC_PHOTOCOPY")
    private String scPhotocopy;

    /**
     * 复印状态描述
     */
    @TableField("ST_PHOTOCOPY")
    private String stPhotocopy;

    /**
     * 病历属性编码
     */
    @TableField("SC_FILE_VISIT_TYPE")
    private String scFileVisitType;

    /**
     * 病历属性描述
     */
    @TableField("ST_FILE_VISIT_TYPE")
    private String stFileVisitType;

    /**
     * 病历内容格式编码
     */
    @TableField("SC_MR_LINK_TYPE")
    private String scMrLinkType;

    /**
     * 病历内容格式描述
     */
    @TableField("ST_MR_LINK_TYPE")
    private String stMrLinkType;

    /**
     * 展示处理程序编码
     */
    @TableField("SC_LINK_APP")
    private String scLinkApp;

    /**
     * 展示处理程序描述
     */
    @TableField("ST_LINK_APP")
    private String stLinkApp;

    /**
     * IMR主键
     */
    @TableField("IMR_ROWKEY")
    private Long imrRowkey;

    /**
     * IHR主键
     */
    @TableField("IHR_ROWKEY")
    private Long ihrRowkey;

    /**
     * PAV主键
     */
    @TableField("PAV_ROWKEY")
    private Long pavRowkey;

    /**
     * 就诊编号
     */
    @TableField("PAT_VISIT_SN")
    private String patVisitSn;

    /**
     * PAT主键
     */
    @TableField("PAT_ROWKEY")
    private Long patRowkey;

    /**
     * 患者编号
     */
    @TableField("PATIENT_SN")
    private String patientSn;

    /**
     * 患者业务唯一号：HIS_PAT_ID
     */
    @TableField("HIS_PAT_ID")
    private String hisPatId;

    /**
     * 就诊业务唯一号：HIS_VIS_ID
     */
    @TableField("HIS_VIS_ID")
    private String hisVisId;

    /**
     * 创建时间
     */
    @TableField("CREATED_T")
    private Date createdT;

    /**
     * 更新时间
     */
    @TableField("UPDATED_T")
    private Date updatedT;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        JhInMr other = (JhInMr) that;
        return (this.getRowkey() == null ? other.getRowkey() == null : this.getRowkey().equals(other.getRowkey()))
            && (this.getInMrSn() == null ? other.getInMrSn() == null : this.getInMrSn().equals(other.getInMrSn()))
            && (this.getHisKey() == null ? other.getHisKey() == null : this.getHisKey().equals(other.getHisKey()))
            && (this.getInHospSn() == null ? other.getInHospSn() == null : this.getInHospSn().equals(other.getInHospSn()))
            && (this.getMrCode() == null ? other.getMrCode() == null : this.getMrCode().equals(other.getMrCode()))
            && (this.getMrName() == null ? other.getMrName() == null : this.getMrName().equals(other.getMrName()))
            && (this.getMrTopic() == null ? other.getMrTopic() == null : this.getMrTopic().equals(other.getMrTopic()))
            && (this.getCreatorName() == null ? other.getCreatorName() == null : this.getCreatorName().equals(other.getCreatorName()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getLastModifyName() == null ? other.getLastModifyName() == null : this.getLastModifyName().equals(other.getLastModifyName()))
            && (this.getLastModifyTime() == null ? other.getLastModifyTime() == null : this.getLastModifyTime().equals(other.getLastModifyTime()))
            && (this.getMrType() == null ? other.getMrType() == null : this.getMrType().equals(other.getMrType()))
            && (this.getMrClass() == null ? other.getMrClass() == null : this.getMrClass().equals(other.getMrClass()))
            && (this.getMrSubClass() == null ? other.getMrSubClass() == null : this.getMrSubClass().equals(other.getMrSubClass()))
            && (this.getFileFlag() == null ? other.getFileFlag() == null : this.getFileFlag().equals(other.getFileFlag()))
            && (this.getCaptionDateTime() == null ? other.getCaptionDateTime() == null : this.getCaptionDateTime().equals(other.getCaptionDateTime()))
            && (this.getHouseman() == null ? other.getHouseman() == null : this.getHouseman().equals(other.getHouseman()))
            && (this.getOnDutyFlag() == null ? other.getOnDutyFlag() == null : this.getOnDutyFlag().equals(other.getOnDutyFlag()))
            && (this.getParentName() == null ? other.getParentName() == null : this.getParentName().equals(other.getParentName()))
            && (this.getParentTime() == null ? other.getParentTime() == null : this.getParentTime().equals(other.getParentTime()))
            && (this.getSupperName() == null ? other.getSupperName() == null : this.getSupperName().equals(other.getSupperName()))
            && (this.getSupperTime() == null ? other.getSupperTime() == null : this.getSupperTime().equals(other.getSupperTime()))
            && (this.getTopicDoctorName() == null ? other.getTopicDoctorName() == null : this.getTopicDoctorName().equals(other.getTopicDoctorName()))
            && (this.getPhotocopy() == null ? other.getPhotocopy() == null : this.getPhotocopy().equals(other.getPhotocopy()))
            && (this.getFileVisitType() == null ? other.getFileVisitType() == null : this.getFileVisitType().equals(other.getFileVisitType()))
            && (this.getFileComment() == null ? other.getFileComment() == null : this.getFileComment().equals(other.getFileComment()))
            && (this.getFirstSignTime() == null ? other.getFirstSignTime() == null : this.getFirstSignTime().equals(other.getFirstSignTime()))
            && (this.getDeleteFlag() == null ? other.getDeleteFlag() == null : this.getDeleteFlag().equals(other.getDeleteFlag()))
            && (this.getMrContentHtml() == null ? other.getMrContentHtml() == null : this.getMrContentHtml().equals(other.getMrContentHtml()))
            && (this.getMrContentText() == null ? other.getMrContentText() == null : this.getMrContentText().equals(other.getMrContentText()))
            && (this.getMrContentCda() == null ? other.getMrContentCda() == null : this.getMrContentCda().equals(other.getMrContentCda()))
            && (this.getMrContentPdf() == null ? other.getMrContentPdf() == null : this.getMrContentPdf().equals(other.getMrContentPdf()))
            && (this.getMrLinkType() == null ? other.getMrLinkType() == null : this.getMrLinkType().equals(other.getMrLinkType()))
            && (this.getMrLinkUrl() == null ? other.getMrLinkUrl() == null : this.getMrLinkUrl().equals(other.getMrLinkUrl()))
            && (this.getMrLinkExt() == null ? other.getMrLinkExt() == null : this.getMrLinkExt().equals(other.getMrLinkExt()))
            && (this.getLinkApp() == null ? other.getLinkApp() == null : this.getLinkApp().equals(other.getLinkApp()))
            && (this.getLinkPara() == null ? other.getLinkPara() == null : this.getLinkPara().equals(other.getLinkPara()))
            && (this.getMrContent1() == null ? other.getMrContent1() == null : this.getMrContent1().equals(other.getMrContent1()))
            && (this.getMrContent2() == null ? other.getMrContent2() == null : this.getMrContent2().equals(other.getMrContent2()))
            && (this.getMrContent3() == null ? other.getMrContent3() == null : this.getMrContent3().equals(other.getMrContent3()))
            && (this.getMrContent4() == null ? other.getMrContent4() == null : this.getMrContent4().equals(other.getMrContent4()))
            && (this.getHisKeySrc() == null ? other.getHisKeySrc() == null : this.getHisKeySrc().equals(other.getHisKeySrc()))
            && (this.getPdlLastUpdate() == null ? other.getPdlLastUpdate() == null : this.getPdlLastUpdate().equals(other.getPdlLastUpdate()))
            && (this.getScCreator() == null ? other.getScCreator() == null : this.getScCreator().equals(other.getScCreator()))
            && (this.getStCreator() == null ? other.getStCreator() == null : this.getStCreator().equals(other.getStCreator()))
            && (this.getScLastModify() == null ? other.getScLastModify() == null : this.getScLastModify().equals(other.getScLastModify()))
            && (this.getStLastModify() == null ? other.getStLastModify() == null : this.getStLastModify().equals(other.getStLastModify()))
            && (this.getSdMrType() == null ? other.getSdMrType() == null : this.getSdMrType().equals(other.getSdMrType()))
            && (this.getStMrType() == null ? other.getStMrType() == null : this.getStMrType().equals(other.getStMrType()))
            && (this.getSdFileSta() == null ? other.getSdFileSta() == null : this.getSdFileSta().equals(other.getSdFileSta()))
            && (this.getStFileSta() == null ? other.getStFileSta() == null : this.getStFileSta().equals(other.getStFileSta()))
            && (this.getScHouseman() == null ? other.getScHouseman() == null : this.getScHouseman().equals(other.getScHouseman()))
            && (this.getStHouseman() == null ? other.getStHouseman() == null : this.getStHouseman().equals(other.getStHouseman()))
            && (this.getSdOnDuty() == null ? other.getSdOnDuty() == null : this.getSdOnDuty().equals(other.getSdOnDuty()))
            && (this.getScParent() == null ? other.getScParent() == null : this.getScParent().equals(other.getScParent()))
            && (this.getStParent() == null ? other.getStParent() == null : this.getStParent().equals(other.getStParent()))
            && (this.getScSupper() == null ? other.getScSupper() == null : this.getScSupper().equals(other.getScSupper()))
            && (this.getStSupper() == null ? other.getStSupper() == null : this.getStSupper().equals(other.getStSupper()))
            && (this.getSdPhotocopy() == null ? other.getSdPhotocopy() == null : this.getSdPhotocopy().equals(other.getSdPhotocopy()))
            && (this.getSdFileVisitType() == null ? other.getSdFileVisitType() == null : this.getSdFileVisitType().equals(other.getSdFileVisitType()))
            && (this.getSdDelete() == null ? other.getSdDelete() == null : this.getSdDelete().equals(other.getSdDelete()))
            && (this.getSdMrLinkType() == null ? other.getSdMrLinkType() == null : this.getSdMrLinkType().equals(other.getSdMrLinkType()))
            && (this.getSdLinkApp() == null ? other.getSdLinkApp() == null : this.getSdLinkApp().equals(other.getSdLinkApp()))
            && (this.getScMrType() == null ? other.getScMrType() == null : this.getScMrType().equals(other.getScMrType()))
            && (this.getScFileSta() == null ? other.getScFileSta() == null : this.getScFileSta().equals(other.getScFileSta()))
            && (this.getScPhotocopy() == null ? other.getScPhotocopy() == null : this.getScPhotocopy().equals(other.getScPhotocopy()))
            && (this.getStPhotocopy() == null ? other.getStPhotocopy() == null : this.getStPhotocopy().equals(other.getStPhotocopy()))
            && (this.getScFileVisitType() == null ? other.getScFileVisitType() == null : this.getScFileVisitType().equals(other.getScFileVisitType()))
            && (this.getStFileVisitType() == null ? other.getStFileVisitType() == null : this.getStFileVisitType().equals(other.getStFileVisitType()))
            && (this.getScMrLinkType() == null ? other.getScMrLinkType() == null : this.getScMrLinkType().equals(other.getScMrLinkType()))
            && (this.getStMrLinkType() == null ? other.getStMrLinkType() == null : this.getStMrLinkType().equals(other.getStMrLinkType()))
            && (this.getScLinkApp() == null ? other.getScLinkApp() == null : this.getScLinkApp().equals(other.getScLinkApp()))
            && (this.getStLinkApp() == null ? other.getStLinkApp() == null : this.getStLinkApp().equals(other.getStLinkApp()))
            && (this.getImrRowkey() == null ? other.getImrRowkey() == null : this.getImrRowkey().equals(other.getImrRowkey()))
            && (this.getIhrRowkey() == null ? other.getIhrRowkey() == null : this.getIhrRowkey().equals(other.getIhrRowkey()))
            && (this.getPavRowkey() == null ? other.getPavRowkey() == null : this.getPavRowkey().equals(other.getPavRowkey()))
            && (this.getPatVisitSn() == null ? other.getPatVisitSn() == null : this.getPatVisitSn().equals(other.getPatVisitSn()))
            && (this.getPatRowkey() == null ? other.getPatRowkey() == null : this.getPatRowkey().equals(other.getPatRowkey()))
            && (this.getPatientSn() == null ? other.getPatientSn() == null : this.getPatientSn().equals(other.getPatientSn()))
            && (this.getHisPatId() == null ? other.getHisPatId() == null : this.getHisPatId().equals(other.getHisPatId()))
            && (this.getHisVisId() == null ? other.getHisVisId() == null : this.getHisVisId().equals(other.getHisVisId()))
            && (this.getCreatedT() == null ? other.getCreatedT() == null : this.getCreatedT().equals(other.getCreatedT()))
            && (this.getUpdatedT() == null ? other.getUpdatedT() == null : this.getUpdatedT().equals(other.getUpdatedT()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRowkey() == null) ? 0 : getRowkey().hashCode());
        result = prime * result + ((getInMrSn() == null) ? 0 : getInMrSn().hashCode());
        result = prime * result + ((getHisKey() == null) ? 0 : getHisKey().hashCode());
        result = prime * result + ((getInHospSn() == null) ? 0 : getInHospSn().hashCode());
        result = prime * result + ((getMrCode() == null) ? 0 : getMrCode().hashCode());
        result = prime * result + ((getMrName() == null) ? 0 : getMrName().hashCode());
        result = prime * result + ((getMrTopic() == null) ? 0 : getMrTopic().hashCode());
        result = prime * result + ((getCreatorName() == null) ? 0 : getCreatorName().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getLastModifyName() == null) ? 0 : getLastModifyName().hashCode());
        result = prime * result + ((getLastModifyTime() == null) ? 0 : getLastModifyTime().hashCode());
        result = prime * result + ((getMrType() == null) ? 0 : getMrType().hashCode());
        result = prime * result + ((getMrClass() == null) ? 0 : getMrClass().hashCode());
        result = prime * result + ((getMrSubClass() == null) ? 0 : getMrSubClass().hashCode());
        result = prime * result + ((getFileFlag() == null) ? 0 : getFileFlag().hashCode());
        result = prime * result + ((getCaptionDateTime() == null) ? 0 : getCaptionDateTime().hashCode());
        result = prime * result + ((getHouseman() == null) ? 0 : getHouseman().hashCode());
        result = prime * result + ((getOnDutyFlag() == null) ? 0 : getOnDutyFlag().hashCode());
        result = prime * result + ((getParentName() == null) ? 0 : getParentName().hashCode());
        result = prime * result + ((getParentTime() == null) ? 0 : getParentTime().hashCode());
        result = prime * result + ((getSupperName() == null) ? 0 : getSupperName().hashCode());
        result = prime * result + ((getSupperTime() == null) ? 0 : getSupperTime().hashCode());
        result = prime * result + ((getTopicDoctorName() == null) ? 0 : getTopicDoctorName().hashCode());
        result = prime * result + ((getPhotocopy() == null) ? 0 : getPhotocopy().hashCode());
        result = prime * result + ((getFileVisitType() == null) ? 0 : getFileVisitType().hashCode());
        result = prime * result + ((getFileComment() == null) ? 0 : getFileComment().hashCode());
        result = prime * result + ((getFirstSignTime() == null) ? 0 : getFirstSignTime().hashCode());
        result = prime * result + ((getDeleteFlag() == null) ? 0 : getDeleteFlag().hashCode());
        result = prime * result + ((getMrContentHtml() == null) ? 0 : getMrContentHtml().hashCode());
        result = prime * result + ((getMrContentText() == null) ? 0 : getMrContentText().hashCode());
        result = prime * result + ((getMrContentCda() == null) ? 0 : getMrContentCda().hashCode());
        result = prime * result + ((getMrContentPdf() == null) ? 0 : getMrContentPdf().hashCode());
        result = prime * result + ((getMrLinkType() == null) ? 0 : getMrLinkType().hashCode());
        result = prime * result + ((getMrLinkUrl() == null) ? 0 : getMrLinkUrl().hashCode());
        result = prime * result + ((getMrLinkExt() == null) ? 0 : getMrLinkExt().hashCode());
        result = prime * result + ((getLinkApp() == null) ? 0 : getLinkApp().hashCode());
        result = prime * result + ((getLinkPara() == null) ? 0 : getLinkPara().hashCode());
        result = prime * result + ((getMrContent1() == null) ? 0 : getMrContent1().hashCode());
        result = prime * result + ((getMrContent2() == null) ? 0 : getMrContent2().hashCode());
        result = prime * result + ((getMrContent3() == null) ? 0 : getMrContent3().hashCode());
        result = prime * result + ((getMrContent4() == null) ? 0 : getMrContent4().hashCode());
        result = prime * result + ((getHisKeySrc() == null) ? 0 : getHisKeySrc().hashCode());
        result = prime * result + ((getPdlLastUpdate() == null) ? 0 : getPdlLastUpdate().hashCode());
        result = prime * result + ((getScCreator() == null) ? 0 : getScCreator().hashCode());
        result = prime * result + ((getStCreator() == null) ? 0 : getStCreator().hashCode());
        result = prime * result + ((getScLastModify() == null) ? 0 : getScLastModify().hashCode());
        result = prime * result + ((getStLastModify() == null) ? 0 : getStLastModify().hashCode());
        result = prime * result + ((getSdMrType() == null) ? 0 : getSdMrType().hashCode());
        result = prime * result + ((getStMrType() == null) ? 0 : getStMrType().hashCode());
        result = prime * result + ((getSdFileSta() == null) ? 0 : getSdFileSta().hashCode());
        result = prime * result + ((getStFileSta() == null) ? 0 : getStFileSta().hashCode());
        result = prime * result + ((getScHouseman() == null) ? 0 : getScHouseman().hashCode());
        result = prime * result + ((getStHouseman() == null) ? 0 : getStHouseman().hashCode());
        result = prime * result + ((getSdOnDuty() == null) ? 0 : getSdOnDuty().hashCode());
        result = prime * result + ((getScParent() == null) ? 0 : getScParent().hashCode());
        result = prime * result + ((getStParent() == null) ? 0 : getStParent().hashCode());
        result = prime * result + ((getScSupper() == null) ? 0 : getScSupper().hashCode());
        result = prime * result + ((getStSupper() == null) ? 0 : getStSupper().hashCode());
        result = prime * result + ((getSdPhotocopy() == null) ? 0 : getSdPhotocopy().hashCode());
        result = prime * result + ((getSdFileVisitType() == null) ? 0 : getSdFileVisitType().hashCode());
        result = prime * result + ((getSdDelete() == null) ? 0 : getSdDelete().hashCode());
        result = prime * result + ((getSdMrLinkType() == null) ? 0 : getSdMrLinkType().hashCode());
        result = prime * result + ((getSdLinkApp() == null) ? 0 : getSdLinkApp().hashCode());
        result = prime * result + ((getScMrType() == null) ? 0 : getScMrType().hashCode());
        result = prime * result + ((getScFileSta() == null) ? 0 : getScFileSta().hashCode());
        result = prime * result + ((getScPhotocopy() == null) ? 0 : getScPhotocopy().hashCode());
        result = prime * result + ((getStPhotocopy() == null) ? 0 : getStPhotocopy().hashCode());
        result = prime * result + ((getScFileVisitType() == null) ? 0 : getScFileVisitType().hashCode());
        result = prime * result + ((getStFileVisitType() == null) ? 0 : getStFileVisitType().hashCode());
        result = prime * result + ((getScMrLinkType() == null) ? 0 : getScMrLinkType().hashCode());
        result = prime * result + ((getStMrLinkType() == null) ? 0 : getStMrLinkType().hashCode());
        result = prime * result + ((getScLinkApp() == null) ? 0 : getScLinkApp().hashCode());
        result = prime * result + ((getStLinkApp() == null) ? 0 : getStLinkApp().hashCode());
        result = prime * result + ((getImrRowkey() == null) ? 0 : getImrRowkey().hashCode());
        result = prime * result + ((getIhrRowkey() == null) ? 0 : getIhrRowkey().hashCode());
        result = prime * result + ((getPavRowkey() == null) ? 0 : getPavRowkey().hashCode());
        result = prime * result + ((getPatVisitSn() == null) ? 0 : getPatVisitSn().hashCode());
        result = prime * result + ((getPatRowkey() == null) ? 0 : getPatRowkey().hashCode());
        result = prime * result + ((getPatientSn() == null) ? 0 : getPatientSn().hashCode());
        result = prime * result + ((getHisPatId() == null) ? 0 : getHisPatId().hashCode());
        result = prime * result + ((getHisVisId() == null) ? 0 : getHisVisId().hashCode());
        result = prime * result + ((getCreatedT() == null) ? 0 : getCreatedT().hashCode());
        result = prime * result + ((getUpdatedT() == null) ? 0 : getUpdatedT().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", rowkey=").append(rowkey);
        sb.append(", inMrSn=").append(inMrSn);
        sb.append(", hisKey=").append(hisKey);
        sb.append(", inHospSn=").append(inHospSn);
        sb.append(", mrCode=").append(mrCode);
        sb.append(", mrName=").append(mrName);
        sb.append(", mrTopic=").append(mrTopic);
        sb.append(", creatorName=").append(creatorName);
        sb.append(", createTime=").append(createTime);
        sb.append(", lastModifyName=").append(lastModifyName);
        sb.append(", lastModifyTime=").append(lastModifyTime);
        sb.append(", mrType=").append(mrType);
        sb.append(", mrClass=").append(mrClass);
        sb.append(", mrSubClass=").append(mrSubClass);
        sb.append(", fileFlag=").append(fileFlag);
        sb.append(", captionDateTime=").append(captionDateTime);
        sb.append(", houseman=").append(houseman);
        sb.append(", onDutyFlag=").append(onDutyFlag);
        sb.append(", parentName=").append(parentName);
        sb.append(", parentTime=").append(parentTime);
        sb.append(", supperName=").append(supperName);
        sb.append(", supperTime=").append(supperTime);
        sb.append(", topicDoctorName=").append(topicDoctorName);
        sb.append(", photocopy=").append(photocopy);
        sb.append(", fileVisitType=").append(fileVisitType);
        sb.append(", fileComment=").append(fileComment);
        sb.append(", firstSignTime=").append(firstSignTime);
        sb.append(", deleteFlag=").append(deleteFlag);
        sb.append(", mrContentHtml=").append(mrContentHtml);
        sb.append(", mrContentText=").append(mrContentText);
        sb.append(", mrContentCda=").append(mrContentCda);
        sb.append(", mrContentPdf=").append(mrContentPdf);
        sb.append(", mrLinkType=").append(mrLinkType);
        sb.append(", mrLinkUrl=").append(mrLinkUrl);
        sb.append(", mrLinkExt=").append(mrLinkExt);
        sb.append(", linkApp=").append(linkApp);
        sb.append(", linkPara=").append(linkPara);
        sb.append(", mrContent1=").append(mrContent1);
        sb.append(", mrContent2=").append(mrContent2);
        sb.append(", mrContent3=").append(mrContent3);
        sb.append(", mrContent4=").append(mrContent4);
        sb.append(", hisKeySrc=").append(hisKeySrc);
        sb.append(", pdlLastUpdate=").append(pdlLastUpdate);
        sb.append(", scCreator=").append(scCreator);
        sb.append(", stCreator=").append(stCreator);
        sb.append(", scLastModify=").append(scLastModify);
        sb.append(", stLastModify=").append(stLastModify);
        sb.append(", sdMrType=").append(sdMrType);
        sb.append(", stMrType=").append(stMrType);
        sb.append(", sdFileSta=").append(sdFileSta);
        sb.append(", stFileSta=").append(stFileSta);
        sb.append(", scHouseman=").append(scHouseman);
        sb.append(", stHouseman=").append(stHouseman);
        sb.append(", sdOnDuty=").append(sdOnDuty);
        sb.append(", scParent=").append(scParent);
        sb.append(", stParent=").append(stParent);
        sb.append(", scSupper=").append(scSupper);
        sb.append(", stSupper=").append(stSupper);
        sb.append(", sdPhotocopy=").append(sdPhotocopy);
        sb.append(", sdFileVisitType=").append(sdFileVisitType);
        sb.append(", sdDelete=").append(sdDelete);
        sb.append(", sdMrLinkType=").append(sdMrLinkType);
        sb.append(", sdLinkApp=").append(sdLinkApp);
        sb.append(", scMrType=").append(scMrType);
        sb.append(", scFileSta=").append(scFileSta);
        sb.append(", scPhotocopy=").append(scPhotocopy);
        sb.append(", stPhotocopy=").append(stPhotocopy);
        sb.append(", scFileVisitType=").append(scFileVisitType);
        sb.append(", stFileVisitType=").append(stFileVisitType);
        sb.append(", scMrLinkType=").append(scMrLinkType);
        sb.append(", stMrLinkType=").append(stMrLinkType);
        sb.append(", scLinkApp=").append(scLinkApp);
        sb.append(", stLinkApp=").append(stLinkApp);
        sb.append(", imrRowkey=").append(imrRowkey);
        sb.append(", ihrRowkey=").append(ihrRowkey);
        sb.append(", pavRowkey=").append(pavRowkey);
        sb.append(", patVisitSn=").append(patVisitSn);
        sb.append(", patRowkey=").append(patRowkey);
        sb.append(", patientSn=").append(patientSn);
        sb.append(", hisPatId=").append(hisPatId);
        sb.append(", hisVisId=").append(hisVisId);
        sb.append(", createdT=").append(createdT);
        sb.append(", updatedT=").append(updatedT);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}